<?php
/**
 * Welcome
 *
 * Shows a simple welcome message
 *
 * @package		MicroMVC
 * @author		David Pennington
 * @copyright	Copyright (c) 2008 CodeXplorer
 * @license		http://www.gnu.org/licenses/gpl-3.0.html
 * @link		http://codexplorer.com
 * @version		1.0.0 <8/15/2008>
 ********************************** 80 Columns *********************************
 */
class welcome extends core {
	
	//Show a welcome message
	function index() {
	
		//Create Some data
		$theme_data['class'] = get_class($this);
		$theme_data['function'] = __FUNCTION__;
		
		$this->data['content'] = $this->view('welcome/welcome', $theme_data, true);
		
	}
	
	//Show an example hook
	function hooks() {
	
		//Call a function from a hook
		$this->data['content'] = $this->call_hook('my_first_hook', true);
		
		//Call two class methods from a hook
		$this->data['content'] .= $this->call_hook('my_second_hook', 'MY_WORD');
		
	}

}